package com.secsbrain.cmdb.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 机架设备表
 *
 */
@TableName(value = "cmdb_rack")
public class Rack implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 创建人 */
	private String creator;

	/** 更新人 */
	private String updator;

	/** 机架名称，如ss */
	private String name;

	/** 起始U */
	private Integer startu;

	/** 结束U */
	private Integer endu;

	/** 机柜ID */
	@TableField(value = "cabinet_id")
	private Long cabinetId;
	
	@TableField(exist = false)
	private String cabinetName;
	
	@TableField(exist = false)
	private String idcName;

	/** 机房ID */
	@TableField(value = "idc_id")
	private Long idcId;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdator() {
		return this.updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStartu() {
		return startu;
	}

	public void setStartu(Integer startu) {
		this.startu = startu;
	}

	public Integer getEndu() {
		return endu;
	}

	public void setEndu(Integer endu) {
		this.endu = endu;
	}

	public Long getCabinetId() {
		return this.cabinetId;
	}

	public void setCabinetId(Long cabinetId) {
		this.cabinetId = cabinetId;
	}

	public Long getIdcId() {
		return this.idcId;
	}

	public void setIdcId(Long idcId) {
		this.idcId = idcId;
	}

	public String getCabinetName() {
		return cabinetName;
	}

	public void setCabinetName(String cabinetName) {
		this.cabinetName = cabinetName;
	}

	public String getIdcName() {
		return idcName;
	}

	public void setIdcName(String idcName) {
		this.idcName = idcName;
	}

}
